package di

import (
	"cooke-home/common/handle"
	"cooke-home/stock-service/controller"
	"cooke-home/stock-service/mapper"
	"cooke-home/stock-service/service"
)

var (
	SocketController *controller.SocketController
)

func InitDI() {
	handle.InitGorm()

	socketMapper := mapper.NewSocketMapperImpl()

	socketService := service.NewSocketServiceImpl(taskMapper)

	SocketController = controller.NewSocketController(taskService)
}
